<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>张三</button>
    <button>李四</button>
    <button>王五</button>
    <div>
      <p>姓名：</p>
      <p>年龄：</p>
      <p>性别：</p>
    </div>
    <!-- 
      1. 给这几个按钮注册点击事件
      2. 点哪个按钮，当前按钮变红
      3. 显示这个人的信息
        1. 确定点的是谁的信息
        2. 通过users对象获取这个人具体的信息
        3. 动态渲染出来即可
     -->
    <script>
      const users = {
        zs: {
          name: '张三',
          age: 18,
          gender: '男',
        },
        ls: {
          name: '李四',
          age: 20,
          gender: '女',
        },
        ww: {
          name: '王五',
          age: 30,
          gender: '男',
        },
      }
    </script>
  </body>
</html>
